package com.wantupai.mvp.framework.support;

import android.content.Context;
import android.os.Parcelable;

import com.wantupai.mvp.mvp.MvpPresenter;
import com.wantupai.mvp.mvp.MvpView;


/**
 * @author :Created by zhangqing on 2018/07/17 15:19
 * @description :
 * @email :1423118197@qq.com
 * @classpath : cn.doolii.mvp.framework.support.ProxyViewGroupDelegateCallback
 */
public class ProxyViewGroupDelegateCallback<V extends MvpView, P extends MvpPresenter<V>> extends ProxyMvpDelegateCallBack<V, P> implements ViewGroupDelegateCallback<V, P>

{
    private ViewGroupDelegateCallback<V, P> mVPViewGroupDelegateCallback;

    public ProxyViewGroupDelegateCallback(ViewGroupDelegateCallback<V, P> mvpCallback) {
        super(mvpCallback);
        mVPViewGroupDelegateCallback = mvpCallback;
    }

    @Override
    public Parcelable superOnSaveInstanceState() {
        return mVPViewGroupDelegateCallback.superOnSaveInstanceState();
    }

    @Override
    public void superOnRestoreInstanceState(Parcelable state) {
        mVPViewGroupDelegateCallback.superOnRestoreInstanceState(state);
    }

    @Override
    public Context getContext() {
        return mVPViewGroupDelegateCallback.getContext();
    }
}
